using System;
using System.Collections.Generic;
using System.Text;

namespace Eve.Data
{
    public class CorporateActivity : EveProperty
    {
        private string activityName;
        private string description;

        public string Name
        {
            get { return activityName; }
        }
        public string Description
        {
            get { return description; }
        }

        internal CorporateActivity(DbDataRow dr)
            : base(dr.Database, EvePropertyType.CorporateActivity, dr["activityID"])
        {
            Fill(dr);
        }
        internal CorporateActivity(Database db, int id)
            : base(db, EvePropertyType.CorporateActivity, id)
        {
            Fill(db.ExecuteSingle("SELECT * FROM crpActivities WHERE activityID=" + id));
        }

        private void Fill(DbDataRow dr)
        {
            activityName = dr["activityName"];
            description = dr["description"];
        }
    }
}
